package ru.megazlo.basemvc.web.test.conf;

import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.core.userdetails.UserDetailsService;
import ru.megazlo.basemvc.service.NewsService;

/**
 * здесь описываются моки сервисов
 */
@Configuration
public class ServicesTestContext {

	@Bean
	public UserDetailsService getUserDetailsService() {
		return Mockito.mock(UserDetailsService.class);
	}

	@Bean
	public NewsService getNewsService(){
		return Mockito.mock(NewsService.class);
	}
}
